package com.jielin.handling.entity.goods;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jielin.handling.bean.base.BaseSearch;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Belongings extends BaseSearch {
    private String id;

    private String suspectId;

    private String picUrl;

    private String effectsDescribe;

    private int amount;

    private String goodsName;

    private String keepNumber;

    private Date photoTime;

    private Date takeDate;

    private String takeName;

    private String takeIdentity;

    private int takeType;

    private String takePromise;

    private String takePhoto;

    private String takeVideo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String takeTime;

    private int isReturn;

    private Date createDate;

    private Date modifyDate;

    private String organizationName;//单位名称

    private String policeName;//主办民警姓名

    private String regionName;//区域名称

    private String keepMethed;

    /**
     * 录像视频路径
     */
    private List<String> recordVideoPath;

    @Override
    public void setQueryCondition(JSONObject queryCondition) {
        this.keepMethed = queryCondition.getString("keepMethed");
        this.suspectId = queryCondition.getString("suspectId");
    }
}
